package com.h3c.nem.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: SdUserDTO
 *
 * @Author: l22886
 * @Date: 2022-01-19
 * Description: sd_user dto实体
 * Version: 1.0
 */
@ApiModel(value="SdUser对象", description="")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SdUserDTO {


    @ApiModelProperty(value = "员工工号")
    private String userId;

    @ApiModelProperty(value = "员工域账号")
    private String domainAccount;

    private String userName;

    @ApiModelProperty(value = "手机号码（用于接收登录验证码）")
    private String phoneNo;

    private String email;

    private String userRole;

    private String userRoleCh;

    private Integer deptSystem;

    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="Asia/Shanghai")
    private Date operateTime;

    private String operatorId;

    private String creatorId;

    private Integer teacherFlag;

    private Integer canSendOffer;


    /**
     * 排序字段 + 升序， -降序
     * 比如 +updateTime 根据 修改时间升序排序，-updateTime 根据 修改时间降序排序
     */
    private String orderBy;

}
